<?php
/**
 * Created by PhpStorm.
 * User: 13095
 * Date: 2018/9/14
 * Time: 10:57
 */

namespace app\api\validate;


use think\Validate;

class ValidateAuth extends Validate
{
    protected $rule = [
        ['auth_name','require|max:30','{%auth_name no empty}|{%auth_name format error}'],
        ['auth_rules','require|max:50','{%auth_name no empty}|{%auth_name format error}'],
    ];
    protected $scene = [
        ['add'=>['auth_name','auth_rules']],
        ['edit'=>['auth_name','auth_rules']],
    ];
}